package cn.zlp.hrm.client;

import cn.zlp.hrm.vo.UserContextInfo;
import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

/**
 * 注要交给spring管理
 * @program: hrm-parent
 * @author: Mr.Zhang
 * @create: 2022-01-10 00:18
 **/
@Component
public class SysmanageServerFallBackFactory implements FallbackFactory<SysmanageServerClient> {

    @Override
    public SysmanageServerClient create(Throwable cause) {
        return new SysmanageServerClient() {
            @Override
            public UserContextInfo getEmpAndTenantByLoginId(Long loginId) {
                return null;
            }
        };
    }
}
